feat: add support for unknown in typescript#2194
Conversation
Adds support for `unknown` (and it's flow equivalent) in TypeScript. Closes glideapps#1619
|
Awesome! Please add an option for this in the typescript test fixture. |
|
@dvdsgl absolutely! Pulled down source to attempt this, but I'm not sure where in tests I'd add the specific options? Also ran into this issue while executing |
|
Check the README for details. You want quicktestRenderSettings or some such name. |
|
Yup that was it. Actually found an unrelated bug, but icing this PR for a second. The source uses "any" as a catchall in a number of places where a more specific type ( |
|
@RichiCoder1 are there any plans to move forward with this PR? |
Add a `--prefer-unknown` CLI flag that emits `unknown` instead of `any` in TypeScript output, and `mixed` instead of `any` in Flow output. This is a fresh implementation of the feature proposed in PR glideapps#2194 by @RichiCoder1, adapted to the current codebase structure where TypeScriptFlow was split into multiple files. Closes glideapps#1619 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a `--prefer-unknown` CLI flag that emits `unknown` instead of `any` in TypeScript output, and `mixed` instead of `any` in Flow output. This is a fresh implementation of the feature proposed in PR glideapps#2194 by @RichiCoder1, adapted to the current codebase structure where TypeScriptFlow was split into multiple files. Closes glideapps#1619
|
Closing this draft as superseded: #2862 is a fresh implementation of the same feature ( |
Adds support for
unknown(and it's flow equivalent) in TypeScript.First PR and I made this constribution mostly via the GitHub UI, happy to do more if needed!
Closes #1619